cd %~dp0
cd html
echo ^<?xml version="1.0" encoding="UTF-8"?^> >Sitmap_gb.xml
echo ^<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"^> >>Sitmap_gb.xml
for %%F in (*.html) do call :createSit "%%F"

echo ^</urlset^> >>Sitmap_gb.xml
gbToUtf8.wsf Sitmap_gb.xml sitemap.xml
del Sitmap_gb.xml
pause
goto :EOF
:createSit

echo ^<url^> >>Sitmap_gb.xml
echo ^<loc^>http://pharaoh168.go3.icpcn.com/face/%~1^</loc^> >>Sitmap_gb.xml
echo ^<lastmod^>%date%^</lastmod^> >>Sitmap_gb.xml
echo ^<changefreq^>daily^</changefreq^> >>Sitmap_gb.xml
echo ^<priority^>0.5^</priority^> >>Sitmap_gb.xml
echo ^</url^> >>Sitmap_gb.xml

goto :EOF 